package com.neihe.listenner.event;

import com.neihe.entity.UserFile;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 删除文件事件
 */
@Getter
@Setter
@ToString
public class DeleteFileEvent extends ApplicationEvent {

    /**
     * 所有被删除的文件集合
     */
    private List<UserFile> allRecords;

    public DeleteFileEvent(Object source, List<UserFile> allRecords) {
        super(source);
        this.allRecords = allRecords;
    }
}
